<?php
/**
  *  Project name: project_name
  *  Created on: 08.12.2011
  *  Author: Kai R�der
  */
$sql = CSingleton::get("sql::sql");
$zentrale = $sql->query("SELECT * FROM Zentrale");
$options = "";

$options.= "<option value='null'>Bitte ausw&auml;hlen</option>";
foreach($zentrale as $z)
{
    if($eIdZentrale == $z['idZentrale']) { $checked = "selected='selected'"; } else { unset($checked); }
    $options.= "<option value='" . $z['idZentrale'] . "' $checked>[" . $z['kurzel'] . "] " . utf8_decode($z['bezeichnung']) . "</option>";
}
echo $options;
?>